package com.dcy.file.convert;

import com.dcy.file.vo.in.FileInfoSearchInVO;
import com.dcy.file.vo.out.FileInfoListOutVO;
import com.dcy.file.model.FileInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：dcy
 * @Description:
 * @Date: 2020/11/12 11:20
 */
@Mapper
public interface FileInfoConvert {

    FileInfoConvert INSTANCE = Mappers.getMapper(FileInfoConvert.class);

    FileInfo toFileInfo(FileInfoSearchInVO fileInfoSearchInVO);

    FileInfoListOutVO toOut(FileInfo fileInfo);

    List<FileInfoListOutVO> toOutList(List<FileInfo> fileInfos);
}
